package com.renge.statisticsservice.client;

import com.renge.commonutils.R;
import com.renge.statisticsservice.client.impl.UcenterMemberFeignClient;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name="service-ucnter",fallback = UcenterMemberFeignClient.class)
public interface UcenterMember {
    @ApiOperation(value = "统计每日注册人数")
    @GetMapping("/ucenterservice/ucenter-member/coderegister/{day}")
    public R checkDayByCode(@ApiParam(name = "day", value = "日期格式：2021-06-29", required = true)
                            @PathVariable("day") String day);

}
